package com.carlinfo.hospital.service.impl;

import com.carlinfo.hospital.dao.Medicine_TypeDao;
import com.carlinfo.hospital.pojo.Medicine_type;
import com.carlinfo.hospital.service.Medicine_TypeService;
import com.carlinfo.hospital.util.PageInfoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Medicine_TypeServiceImpl implements Medicine_TypeService {
    @Autowired
    private Medicine_TypeDao medicineTypeDao;

    @Override
    public int saveOneDao(Medicine_type medicine_type) {
        return this.medicineTypeDao.saveOneDao(medicine_type);
    }

    @Override
    public List<Medicine_type> selectListDao(PageInfoUtil pageInfoUtil, Map<String, Object> condMap) {
        return this.medicineTypeDao.selectListDao(pageInfoUtil, condMap);
    }

    @Override
    public Medicine_type selectOneDao(Map<String, Object> condMap) {
        return this.medicineTypeDao.selectOneDao(condMap);
    }

    @Override
    public int updateOneDao(Medicine_type medicine_type) {
        return this.medicineTypeDao.updateOneDao(medicine_type);
    }

    @Override
    public int deleteOneDao(Map<String, Object> condMap) {
        return this.medicineTypeDao.deleteOneDao(condMap);
    }
}
